Otherwise, a user that calls gdk_window_resize (window, 0, 0); over and
over won't properly fizzle out, and will queue a redraw. Clipped, but
still. These redraws can be chatty on some platforms like Wayland, and
there's no good reason to not avoid them.
This was the case for resize grips.
return;
}
+ if (width == 0)
+ width = 1;
+ if (height == 0)
+ height = 1;
+
/* Bail early if no change */
if (window->width == width &&
window->height == height &&
}
if (!(width < 0 && height < 0))
{
- if (width < 1)
- width = 1;
window->width = width;
- if (height < 1)
- height = 1;
window->height = height;
}